// import {
//   http
// } from '@/utils/http.js'
import request from '@/utils/request.js'
class Api {
  getEnergyData(data) {
    return request({
      url: 'api/energy/getEnergyData',
      method: 'POST',
      data
    })
  }
  energyDetails(data) {
    return request({
      url: 'api/energy/energyDetails',
      method: 'POST',
      data
    })
  }
  energyPost(data) {
    return request({
      url: 'api/energy/energyPost',
      method: 'POST',
      data
    })
  }
  energyLog(data) {
    return request({
      url: 'api/energy/energyLog',
      method: 'POST',
      data
    })
  }
  getDetails(data) {
    return request({
      url: 'api/index/getDetails',
      method: 'POST',
      data
    })
  }
}
export default Api